package com.cy.util;

import java.io.IOException;

public class OpenURL extends Thread {

	private String url;
	
	public OpenURL(String url) {
		this.url = url;
	}
	
	@Override
	public void run() {
		openURL(url);
	}

	public void openURL (String url) {
		String urlx="rundll32   url.dll,FileProtocolHandler  "+url;
		try {
			Runtime.getRuntime().exec(""+urlx);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
